Skip to content

fix: use integer division for height_init#424

Open
TDHster wants to merge 1 commit into
waveshareteam:masterfrom
TDHster:fix/integer-division-height-init
Open

fix: use integer division for height_init#424
TDHster wants to merge 1 commit into
waveshareteam:masterfrom
TDHster:fix/integer-division-height-init

Conversation

@TDHster

@TDHster TDHster commented Jun 27, 2026

Copy link
Copy Markdown

Bug: self.height_init/256 returns float in Python 3, causing TypeError in send_data() which expects an integer.
Fix: Replace / with // (integer division) — same fix already applied to self.width//256 on the line above.

self.height_init/256 returns float in Python 3,
causes TypeError in send_data. Fix: use //256.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant